<template>
	<el-dialog title="文件查询对话框" v-model="visible" :width="400" destroy-on-close @closed="$emit('closed')">
		<el-form :model="form" ref="dialogForm" label-width="100px" label-position="left">
			<el-form-item label="关键词" prop="keyword" maxlength="50">
				<el-input v-model="form.keyword" placeholder="关键词" clearable></el-input>
			</el-form-item>
			<el-form-item label="创建时间" prop="createTime">
				<el-date-picker
					v-model="form.createTime"
					type="daterange"
					range-separator="至"
					value-format="YYYY-MM-DD"
					start-placeholder="开始日期"
					end-placeholder="结束日期">
				</el-date-picker>
			</el-form-item>
			<el-form-item label="创建人" prop="createUser" maxlength="50">
				<select-user-dialog v-model:accountId="form.createUser" :mode="false"/>
			</el-form-item>

		</el-form>
		<template #footer>
			<el-button @click="visible=false">取 消</el-button>
			<el-button type="primary" @click="search()">查 询</el-button>
		</template>
	</el-dialog>
</template>
<script>
import selectUserDialog from "@/views/module/selectUserDialog";

export default {
	components: {
		selectUserDialog
	},
	emits: ['success', 'closed'],
	props: {
		folderId: String
	},
	data() {
		return {
			form: {
				keyword:'',
				createTime:['',''],
				createUser:"",
			},
			visible: false,
			isSaveing: false,
		}
	},
	mounted() {

	},
	methods: {
		//显示
		open() {
			this.visible = true;
			return this;
		},
		//表单提交方法
		search() {
			this.$emit('success',this.form);
			this.visible = false;
		},
	}
}
</script>

<style>
</style>
